package com.sgb.kjwl.view.ui.adapter.material;

import android.content.Context;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.MaterialFilterEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class MaterialFilterAdapter extends BaseRecycleAdapter<MaterialFilterEntity> {

    private int index;

    public MaterialFilterAdapter(Context context, List<MaterialFilterEntity> datas) {
        super(context, R.layout.item_filter_material, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, final MaterialFilterEntity entity) {
        holder.setBinding(BR.viewModel, entity);
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
